# 作者: spy
# 开发时间: 2021/12/13 16:33

from common.excel_util import ExcelUtil
from base.base_util import BaseUtil
from pageobject.info_page import InfoDisplay
from ddt import ddt, data, unpack


@ddt  # 声明当前类使用ddt数据驱动
class TestInfoDisplay(BaseUtil):

    @data(*ExcelUtil().read_excel_TrailerInfo())  # 给函数传值  *解析外层的[]
    @unpack  # 解包列表或元组
    def test_02_search_TrailerInfo(self, index, trailer_ID):
        """ 查询拖车信息 """
        pm = InfoDisplay(self.driver)
        pm.search_trailer(trailer_ID)
